package cn.stu.framework.service.impl;

import cn.stu.framework.entity.Conf;
import cn.stu.framework.mapper.ConfMapper;
import cn.stu.framework.service.ConfService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;


/**
 * 会议服务实施
 *
 * @author 郑志豪
 * @date 2023/09/18
 */
@Service
public class ConfServiceImpl extends ServiceImpl<ConfMapper, Conf> implements ConfService {


    /**
     * 查询配置
     *
     * @return {@link Conf}
     */
    @Override
    public Conf selectConf() {
        return lambdaQuery().eq(Conf::getConfId, 1L).one();
    }
}
